/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package deatax;

import java.util.Random;

/**
 *
 * @author Pieman
 */
public class RNG {

    private static Random r;
    
    public static void seed(int n) {
        r = new Random(n);
    }
    public static int rand() {
        return r.nextInt();
    }
    
    public static int rand(int n) {
        return r.nextInt(n);
    }
    
    public static Random get() {
        return r;
    }
    
}
